<!-- 搜索框及工具条 -->
<div class="c-head-box">
    <form method="get" action="{:Url('agent_list')}">
        <ul>
            <li class="c-head-search">
                <!-- 搜索条件 -->
                <ul>
                    <li><span>信贷公司编号：</span><input type="text" name="agent_id" value="{$agent_id}"/></li>
                    <li><span>信贷公司名称：</span><input type="text" name="agent_name" value="{$agent_name}"/></li>
                    <li style="width: 100%"><span>所在城市：</span>{:widget('common/Select/select_group',array('area',array($area_list,"area_id","acronym","parent_id"),0,$area))}</li>
                </ul>
            </li>
            <li class="c-head-button">
                <!-- 操作按钮 -->
                <div class="fr"><input type="submit" class="but_blue" value="搜索"></div>
                <div class="fr"><a class="but_blue" href="{:Url('agent_add')}">添加信贷公司</a></div>
            </li>
        </ul>
    </form>
</div>

<!--用户列表-->
<div class="lists-tab-cont">
    <div class="lists-table">
        <table class="pointer" cellpadding="0" cellspacing="0" border="0">
            <thead>
            <tr>
                <th style="width: 5%;" class="tabSort-header"><a class="tabSort-header-inner"><p>编号</p></a></th>
                <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>营业执照</p></a></th>
                <th style="width: 12%;" class="tabSort-header"><a class="tabSort-header-inner"><p>信贷公司名称</p></a></th>
                <th style="width: 5%;" class="tabSort-header"><a class="tabSort-header-inner"><p>负责人</p></a></th>
                <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>所在省</p></a></th>
                <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>所在市</p></a></th>
                <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>所在区</p></a></th>
                <th style="width: 7%;" class="tabSort-header"><a class="tabSort-header-inner"><p>是否支付保证金</p></a></th>
                <th style="width: 5%;" class="tabSort-header"><a class="tabSort-header-inner"><p>是否认证</p></a></th>

                <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>创建时间</p></a></th>
                <th class="tabSort-header"><a class="tabSort-header-inner"><p>操作</p></a></th>
            </tr>
            </thead>
            <tbody>
            {foreach name="agent_list" item="info"}
            <tr>
                <td>{$info.agent_id}</td>
                <td>{:widget('common/Images/img',array($info["business_license_url"],50,30))}</td>
                <td>{empty name="info['agent_name']"}--{else/}{$info.agent_name}{/empty}</td>
                <td>{empty name="info['real']"}--{else/}{$info.real}{/empty}</td>
                <td>{:widget('common/Name/area',array($info["province_id"]))}</td>
                <td>{:widget('common/Name/area',array($info["city_id"]))}</td>
                <td>{:widget('common/Name/area',array($info["area_id"]))}</td>
                <td>{:widget('common/Color/Color',array("is_bond",$info['is_bond']))}</td>
                <td>{:widget('common/Color/Color',array("is_authentication",$info['is_authentication']))}</td>

                <td>{$info.create_time}</td>
                <td>
                    <a data-type="info-win" data-src="{:Url('agent_info',array('agent_id'=>$info['agent_id']))}" data-title="详情" data-width="80%" data-height="80%" class="blue">详情</a>
                    <a href="{:Url('agent_edit',array('agent_id'=>$info['agent_id']))}" class="blue">编辑</a>
                    <a href="{:Url('agent_del',array('agent_id'=>$info['agent_id']))}" class="blue info1"><font color="red">禁用</font></a>
                    <a data-type="info-win" data-src="{:Url('agent_log',array('agent_id'=>$info['agent_id']))}" data-title="日志" data-width="80%" data-height="80%" class="blue">日志</a>
                    <a href="{:Url('agent_admin',array('agent_id'=>$info['agent_id']))}" class="blue">信贷经理</a>
                    <a href="{:Url('agent_authentication',array('agent_id'=>$info['agent_id']))}" class="blue">企业认证</a>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
    </div>

    <!-- 翻页模板 -->
    <div class="page">
        {$Think.config.page_html}
    </div>
</div>

<!-- JS处理 -->
<script language="javascript">
    $(function(){
        //提示信息
        $("a.info1").click(function(){
            if(confirm("您确定要禁用该公司吗？")){
                return true;
            }else{
                return false;
            }
        });
    });
</script>